package com.ysd.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import org.hibernate.annotations.Parent;
import org.springframework.format.annotation.DateTimeFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/***
 * 会员表
 * @author 
 *
 */
@Entity
@Table
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Memeber {
	@Id
	@GeneratedValue
//	private Integer id; // 主键id
//	private Integer memberId; // 会员卡号
//	private String name; // 会员名
//	private String sex; // 性别
//	private Integer category; // 身份,0=学生,1=老师
//	private String card; // 身份证号
//	private String department; // 系
//	private String profession; // 专业
//	private String grade; // 年级
//	private String phone; // 电话
//	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//	private Date regdate; // 入会时间
//	private Integer status; // 状态,0=没有使用任何资源,其他资源写id
//	private String remark; // 备注
	
	@Excel(name = "id",width = 25,orderNum = "0")
	private Integer id;
	@Excel(name = "card_no",width = 25,orderNum = "0")
	private String card_no;
	@Excel(name = "name",width = 25,orderNum = "0")
	private String name;
	@Excel(name = "sex",width = 25,orderNum = "0")
	private String sex;
	@Excel(name = "category",width = 25,orderNum = "0")
	private Integer category;
	@Excel(name = "card",width = 25,orderNum = "0")
 	private String card;
	@Excel(name = "department",width = 25,orderNum = "0")
	private String department;
	@Excel(name = "profession",width = 25,orderNum = "0")
	private String	profession;
	@Excel(name = "grade",width = 25,orderNum = "0")
	private String grade;
	@Excel(name = "phone",width = 25,orderNum = "0")
	private String phone;
	@Excel(name = "regdate",width = 25,exportFormat = "yyyy-MM-dd HH:mm:ss",orderNum = "1")
	private String regdate;
	@Excel(name = "status",width = 25,orderNum = "0")
	private String status;
	@Excel(name = "remark",width = 25,orderNum = "0")
	private String remark;
}
